# 使用numpy模块生成随机数
import numpy as np

# 随机生成[0,10)的长度为n的分数数组ratings
def Ratings(n):
    ratings = np.random.randint(0, 10, size=n)
    return ratings

#测试数据样例
if __name__ == '__main__':
    for i in range(5):
        print(Ratings(5))
